package utils

import (
	"fmt"
	"testing"
)

func TestCheckPorts(t *testing.T) {
	ports := []string{"2049"}
	err := CheckPorts(ports)
	if err != nil {
		t.Error(err)
	}
}

func TestDiskUsage(t *testing.T) {
	all, free := DiskUsage("/data")
	fmt.Println(all / 1024 / 1024 / 1024)
	fmt.Println(free / 1024 / 1024 / 1024)
}
